import request from "../request.js";
import recommendJson from '@/assets/mock/recommend.json'
import specialsJson from '@/assets/mock/specials.json'
import favlistJson from '@/assets/mock/favlist.json'
import data1 from '@/assets/mock/roundtables.json'

// 获取最新专题
// export const SPECIALS = (limit, offset) => request('GET', `/api/specials?limit=${limit}&offset=${offset}`)

// 获取圆桌讨论
// export const ROUNDTABLES = (offset, limit) => request('GET', `/api/roundtables?limit=${limit}&offset=${offset}`)

// 获取收藏夹
// export const FAVLISTS = (limit, offset) => request('GET', `/api/favlists?limit=${limit}&offset=${offset}`)

// 获取专栏
// export const RECOMMENDATIONS = (limit, offset) => request('GET', `/api/recommendations?limit=${limit}&offset=${offset}`)

export function ROUNDTABLES(limit) {
    return Promise.resolve(data1);
}

export function SPECIALS(limit) {
    return Promise.resolve(specialsJson);
}

export function FAVLISTS(limit) {
    return Promise.resolve(favlistJson);
}

export function RECOMMENDATIONS(limit) {
    return Promise.resolve(recommendJson);
}
